﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListProductNeedToDistribute.aspx.cs" Inherits="WXYW.ListProductNeedToDistribute" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    RMA服务申请--收货确认-->待派单
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click">返回</asp:LinkButton>
        <img src="image/operateicon/docedit.gif" alt="" />
        <asp:LinkButton ID="okLinkButton" runat="server" OnClick="okLinkButton_Click">更新</asp:LinkButton>&nbsp;
    </div>
    <table style="width: 100%">
        <tr style="height: 25px">
            <td style="width: 8%">
                <b>流水号:</b>
            </td>
            <td style="width: 17%">
                <asp:Label ID="runningNumberLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 8%">
                <b>RMA #:</b>
            </td>
            <td style="width: 17%">
                <asp:Label ID="rmaLabel" runat="server" Text="" Width="120"></asp:Label>
            </td>
            <td style="width: 8%">
                <b>当前状态:</b>
            </td>
            <td style="width: 17%">
                <asp:Label ID="statusLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 8%">
                <b>收货日期:</b>
            </td>
            <td style="width: 17%">
                <asp:Label ID="receiveLabel" runat="server" Text="" Width="120"></asp:Label>
            </td>
        </tr>
        <tr style="height: 5px">
            <td colspan="8">
            </td>
        </tr>
    </table>
    <table style="width: 100%">
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>用户信息</b>
            </td>
        </tr>
        <tr style="height: 5px">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 10%">
                申请人:
            </td>
            <td style="width: 20%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierNameTxtBox" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 20%">
            </td>
            <td style="width: 10%">
                客户名称:
            </td>
            <td style="width: 20%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applyCompanyNameTxtBox" runat="server" Width="100%"></asp:Label>
            </td>
            <td style="width: 20%">
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系手机:
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierMobilePhoneTxtBox" Width="100%" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
            <td>
                联系电话：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierPhoneTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系传真：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierFaxTxtBox" runat="server" Text="" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
            <td>
                电子邮箱：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="applierEmailTxtBox" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                通讯地址：
            </td>
            <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="mailAddressTxtBox" Width="100%" runat="server" Text=""></asp:Label>
            </td>
            <td>
            </td>
            <td>
                代理商:
            </td>
            <td style="width: 32%; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                <asp:Label ID="ProviderNameLbl" runat="server" Width="100%"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>产品信息</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
                <asp:HyperLink ID="viewEngineerHyperLink" runat="server">点击查看平台工程师维修状态</asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td colspan="6">
                <asp:GridView ID="productGridView" CssClass="tableList" BorderColor="#888888" BorderWidth="1px"
                    runat="server" AutoGenerateColumns="False" OnRowDataBound="productGridView_RowDataBound"
                    DataKeyNames="ApplicationProductID" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="产品型号">
                            <ItemTemplate>
                                <%#Eval("ProductType.ProductTypeName")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="12%" HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <%--  <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber">
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="12%" HorizontalAlign="Left" />
                        </asp:BoundField>--%>
                        <asp:TemplateField HeaderText="序列号">
                            <ItemTemplate>
                                <asp:LinkButton ID="serialNOLinkButton" runat="server" OnClick="serialNOLinkButton_Click"></asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="12%" HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="ProductVersionNumber" HeaderText="版本号">
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="故障类型">
                            <ItemTemplate>
                                <%#Eval("ProblemType.Name")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="故障现象描述" DataField="ProductProblemDescription">
                            <HeaderStyle Wrap="False" Width="14%" />
                            <ItemStyle Wrap="False" Width="14%" HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="外观及附件" DataField="ProductAppearance">
                            <HeaderStyle Wrap="False" Width="12%" />
                            <ItemStyle Wrap="False" Width="12%" HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="购买时间">
                            <ItemTemplate>
                                <%--<%#Convert.ToDateTime(Eval("ProductPurchaseDateTime")).ToString("yyyy-MM-dd")%>--%>
                                <asp:TextBox ID="TextBox5" runat="server" AutoComplete="off" Text='<%# Convert.ToDateTime(Eval("ProductPurchaseDateTime")).ToString("yyyy-MM-dd") %>'
                                 Width="70px"></asp:TextBox>
                                <%--<img src="image/Calendar_scheduleHS.png" id="dateImage" alt="" />--%>
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="TextBox5">
                                </cc1:CalendarExtender>
                            </ItemTemplate>
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="保修性质">
                            <ItemTemplate>
                                <asp:DropDownList ID="repairTypeDropDownList" runat="server">
                                    <asp:ListItem Text="保内"></asp:ListItem>
                                    <asp:ListItem Text="保外"></asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="维修工程师">
                            <ItemTemplate>
                                <asp:DropDownList ID="engineerDropDownList" runat="server">
                                </asp:DropDownList>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" Wrap="False" Width="10%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <img src="image/ico_user.gif" />
                                <asp:LinkButton ID="submitLinkButton" runat="server" OnClick="submitLinkButton_Click">派单</asp:LinkButton>
                                <img src="image/iconuser.gif" alt="" />
                                <asp:LinkButton ID="updateLinkButton" runat="server" OnClick="updateLinkButton_Click">改派</asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" Width="10%" />
                            <ItemStyle Wrap="False" Width="10%" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr style="height: 5px; color: Red;">
            <td colspan="6">
                提示：您可以点击“派单”单独执行各个产品的派单，也可以选择好工程师之后，点击“派单完成”，一次进行多个产品的派单。
            </td>
        </tr>
        <tr style="height: 25px;" align="center">
            <td colspan="6">
                <%--<asp:Button ID="OKButton" runat="server" OnClick="okLinkButton_Click" Text="派单完成" />--%>
                <asp:Label ID="MsgLbl" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr style="height: 25px;">
            <td colspan="6" style="border-bottom-style: solid; border-bottom-width: 1px;">
                <b>图片预览</b>
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
            </td>
        </tr>
        <tr style="height: 5px;">
            <td colspan="6">
                <asp:Panel ID="picturePanel" runat="server">
                </asp:Panel>
            </td>
        </tr>
    </table>
    <cc1:ModalPopupExtender ID="notificationModalPopupExtender" runat="server" PopupControlID="notificationPanel"
        BackgroundCssClass="modalBackground" TargetControlID="hiddenTargetControlForModalPopup"
        CancelControlID="LinkButton1">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="notificationPanel" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="500px">
        <!-- Header -->
        <div class="box-header" id="QuatationDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                销售信息</h2>
        </div>
        <div class="functionPanel">
            <table width="100%">
                <tr style="height: 20px; text-align: right;">
                    <td colspan="4">
                        <img src="image/operateicon/back_back.gif" alt="" />
                        <asp:LinkButton ID="LinkButton1" runat="server">关闭</asp:LinkButton>
                        <%-- <img src="image/mail_icon.gif" />
                        <asp:LinkButton ID="sendEmailLinkButton" runat="server" OnClick="sendEmailLinkButton_Click">发送</asp:LinkButton>--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Label ID="informationLabel" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr style="height: 25px">
                    <td>
                        序列号:
                    </td>
                    <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                        <asp:Label ID="serialNOLabel" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        销售日期:
                    </td>
                    <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                        <asp:Label ID="toLabel" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr style="height: 25px">
                    <td>
                        保修截止日期:
                    </td>
                    <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                        <asp:Label ID="endtimeLabel" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        销售客户名称:
                    </td>
                    <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: Gray;">
                        <asp:Label ID="saleUserLabel" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
    <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
</asp:Content>
